package commands;

import java.util.List;


import controller.ExecutorsManager;
import controller.ExecutorsManager.UserDropBoxFoldersExecutor;
import database.DbFolder;

/**
 * class UserDropBoxFoldersCommand - for getting the folders that under the user dropbox root
 */
public class UserDropBoxFoldersCommand {
	
	UserDropBoxFoldersExecutor userDropBoxFoldersExecutor = ExecutorsManager.getInstance().getUserDropBoxFoldersExecutor();
	
	/**
	 * constructor
	 */
	public UserDropBoxFoldersCommand(){}

	/**
	 * @param userID - a uset name
	 * @return a list of the folders that under the user dropbox root
	 */
	public List<DbFolder> action(String userID) 
	{
		// TODO Auto-generated method stub
		return userDropBoxFoldersExecutor.getUserDropBoxFolders(userID);				
	}

}
